﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class DatabaseFactory
{
    public static CustomDatabase getDatabase(int i)
    {
        switch(i)
        {
            case 0:
                return new MemoryDatabase();
                break;

            default:
                return new DiskDatabase();
                break;
        }
    }
}